/*
 * Copyright(C) 2013-2017 AZ ALL Rights Reserved.
 *
 * FileName: ApplicationContextInstance
 * 
 * Description: xxxxx
 *
 * History:
 * 版本号                作者      日期      操作
 * 1.0       ZhouFan             2017/10/17 0017   
 *  
 */
package com.az.shiro.ice.spring;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author ZhouFan
 * @version 1.0
 * @date 2017/10/17 0017
 * @see
 */
public class ApplicationContextInstance {

    static ClassPathXmlApplicationContext context;

    /**
     * 单例模式：私有构造方法
     */

    static {
        context = new ClassPathXmlApplicationContext("classpath:app.xml");
    }

    private ApplicationContextInstance() {
    }

    public static ClassPathXmlApplicationContext getInstance() {
        return context;
    }
}

 